package com.ruoyi.system.domain.user;

import org.apache.commons.lang3.builder.ToStringBuilder;
import org.apache.commons.lang3.builder.ToStringStyle;
import com.ruoyi.common.annotation.Excel;
import io.swagger.annotations.ApiModel;
import io.swagger.annotations.ApiModelProperty;
import com.ruoyi.common.core.domain.BaseEntity;

/**
 * 第三方授权对象 vs_dramas_user_oauth
 * 
 * @author zzx
 * @date 2024-07-25
 */
@ApiModel("第三方授权")
public class VsDramasUserOauth extends BaseEntity
{
    private static final long serialVersionUID = 1L;

    /** $column.columnComment */
    private Long id;

    /** $column.columnComment */
    @Excel(name = "${comment}", readConverterExp = "$column.readConverterExp()")
    @ApiModelProperty("${comment}")
    private Long siteId;

    /** 用户 */
    @Excel(name = "用户")
    @ApiModelProperty("用户")
    private Long userId;

    /** 厂商 */
    @Excel(name = "厂商")
    @ApiModelProperty("厂商")
    private String provider;

    /** 平台 */
    @Excel(name = "平台")
    @ApiModelProperty("平台")
    private String platform;

    /** 厂商ID */
    @Excel(name = "厂商ID")
    @ApiModelProperty("厂商ID")
    private String unionid;

    /** 平台ID */
    @Excel(name = "平台ID")
    @ApiModelProperty("平台ID")
    private String openid;

    /** 昵称 */
    @Excel(name = "昵称")
    @ApiModelProperty("昵称")
    private String nickname;

    /** 性别 */
    @Excel(name = "性别")
    @ApiModelProperty("性别")
    private Integer sex;

    /** 国家 */
    @Excel(name = "国家")
    @ApiModelProperty("国家")
    private String country;

    /** 省 */
    @Excel(name = "省")
    @ApiModelProperty("省")
    private String province;

    /** 市 */
    @Excel(name = "市")
    @ApiModelProperty("市")
    private String city;

    /** 头像 */
    @Excel(name = "头像")
    @ApiModelProperty("头像")
    private String headimgurl;

    /** 登录时间 */
    @Excel(name = "登录时间")
    @ApiModelProperty("登录时间")
    private Long logintime;

    /** 累计登陆 */
    @Excel(name = "累计登陆")
    @ApiModelProperty("累计登陆")
    private Long logincount;

    /** 过期周期(s) */
    @Excel(name = "过期周期(s)")
    @ApiModelProperty("过期周期(s)")
    private Long expireIn;

    /** 过期时间 */
    @Excel(name = "过期时间")
    @ApiModelProperty("过期时间")
    private Long expiretime;

    /** session_key */
    @Excel(name = "session_key")
    @ApiModelProperty("session_key")
    private String sessionKey;

    /** refresh_token */
    @Excel(name = "refresh_token")
    @ApiModelProperty("refresh_token")
    private String refreshToken;

    /** access_token */
    @Excel(name = "access_token")
    @ApiModelProperty("access_token")
    private String accessToken;

    private Long createtime;

    private Long updatetime;

    public void setId(Long id) 
    {
        this.id = id;
    }

    public Long getId() 
    {
        return id;
    }
    public void setSiteId(Long siteId) 
    {
        this.siteId = siteId;
    }

    public Long getSiteId() 
    {
        return siteId;
    }
    public void setUserId(Long userId) 
    {
        this.userId = userId;
    }

    public Long getUserId() 
    {
        return userId;
    }
    public void setProvider(String provider) 
    {
        this.provider = provider;
    }

    public String getProvider() 
    {
        return provider;
    }
    public void setPlatform(String platform) 
    {
        this.platform = platform;
    }

    public String getPlatform() 
    {
        return platform;
    }
    public void setUnionid(String unionid) 
    {
        this.unionid = unionid;
    }

    public String getUnionid() 
    {
        return unionid;
    }
    public void setOpenid(String openid) 
    {
        this.openid = openid;
    }

    public String getOpenid() 
    {
        return openid;
    }
    public void setNickname(String nickname) 
    {
        this.nickname = nickname;
    }

    public String getNickname() 
    {
        return nickname;
    }
    public void setSex(Integer sex) 
    {
        this.sex = sex;
    }

    public Integer getSex() 
    {
        return sex;
    }
    public void setCountry(String country) 
    {
        this.country = country;
    }

    public String getCountry() 
    {
        return country;
    }
    public void setProvince(String province) 
    {
        this.province = province;
    }

    public String getProvince() 
    {
        return province;
    }
    public void setCity(String city) 
    {
        this.city = city;
    }

    public String getCity() 
    {
        return city;
    }
    public void setHeadimgurl(String headimgurl) 
    {
        this.headimgurl = headimgurl;
    }

    public String getHeadimgurl() 
    {
        return headimgurl;
    }
    public void setLogintime(Long logintime) 
    {
        this.logintime = logintime;
    }

    public Long getLogintime() 
    {
        return logintime;
    }
    public void setLogincount(Long logincount) 
    {
        this.logincount = logincount;
    }

    public Long getLogincount() 
    {
        return logincount;
    }
    public void setExpireIn(Long expireIn) 
    {
        this.expireIn = expireIn;
    }

    public Long getExpireIn() 
    {
        return expireIn;
    }
    public void setExpiretime(Long expiretime) 
    {
        this.expiretime = expiretime;
    }

    public Long getExpiretime() 
    {
        return expiretime;
    }
    public void setSessionKey(String sessionKey) 
    {
        this.sessionKey = sessionKey;
    }

    public String getSessionKey() 
    {
        return sessionKey;
    }
    public void setRefreshToken(String refreshToken) 
    {
        this.refreshToken = refreshToken;
    }

    public String getRefreshToken() 
    {
        return refreshToken;
    }
    public void setAccessToken(String accessToken) 
    {
        this.accessToken = accessToken;
    }

    public String getAccessToken() 
    {
        return accessToken;
    }

    public Long getCreatetime() {
        return createtime;
    }

    public void setCreatetime(Long createtime) {
        this.createtime = createtime;
    }

    public Long getUpdatetime() {
        return updatetime;
    }

    public void setUpdatetime(Long updatetime) {
        this.updatetime = updatetime;
    }

    @Override
    public String toString() {
        return new ToStringBuilder(this,ToStringStyle.MULTI_LINE_STYLE)
            .append("id", getId())
            .append("siteId", getSiteId())
            .append("userId", getUserId())
            .append("provider", getProvider())
            .append("platform", getPlatform())
            .append("unionid", getUnionid())
            .append("openid", getOpenid())
            .append("nickname", getNickname())
            .append("sex", getSex())
            .append("country", getCountry())
            .append("province", getProvince())
            .append("city", getCity())
            .append("headimgurl", getHeadimgurl())
            .append("logintime", getLogintime())
            .append("logincount", getLogincount())
            .append("expireIn", getExpireIn())
            .append("expiretime", getExpiretime())
            .append("sessionKey", getSessionKey())
            .append("refreshToken", getRefreshToken())
            .append("accessToken", getAccessToken())
            .append("createtime", getCreatetime())
            .append("updatetime", getUpdatetime())
            .toString();
    }
}
